import { onMounted, ref, computed } from "vue"

export default function () {
  let sum = ref(0)
  let bigSum = computed(() => {
    return sum.value + 100
  })
  const increase = () => {
    sum.value++
  }
  const decrease = () => {
    sum.value--
  }
  onMounted(() => {
    increase()
  })
  return { sum, bigSum, increase, decrease }
}